/**
 * 维保方案管理
 */
import request from '@/utils/request'
import { kfApiUrl } from '../config'


/**
 * @description 分页
 * @param {type} data 
 */
 export function getPageCustomerMaintenanceLog(data) {
  return request({
    url: `${kfApiUrl}/customerMaintenanceLog/getPageCustomerMaintenanceLog`,
    method: 'post',
    data
  })
}

/**
 * @description 保存
 * @param {type} params 
 */
 export function insertSelective(data) {
  return request({
    url: `${kfApiUrl}/customerMaintenanceLog/insertSelective`,
    method: 'post',
    data
  })
}
/**
 * @description 获取维保id
 * @param {type} params 
 */
 export function getPlanCode(params) {
  return request({
    url: `${kfApiUrl}/customerMaintenanceLog/getPlanCode`,
    method: 'get',
    params
  })
}

/**
 * @description 修改
 * @param {type} params 
 */
 export function updateByPrimaryKeySelective(data) {
  return request({
    url: `${kfApiUrl}/customerMaintenanceLog/updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
}

/**
 * @description 提交
 * @param {type} params 
 */
 export function submitMaintenanceLog(data) {
  return request({
    url: `${kfApiUrl}/customerMaintenanceLog/submit`,
    method: 'post',
    data
  })
}

/**
 * @description 详情
 * @param {type} params 
 */
 export function getProjectInfo(params) {
  return request({
    url: `${kfApiUrl}/customerMaintenanceLog/getProjectInfo/${params}`,
    method: 'get',
  })
}

/**
 * @description 删除
 * @param {type} params 
 */
 export function deleteByPrimaryKey(data) {
  return request({
    url: `${kfApiUrl}/customerMaintenanceLog/deleteByPrimaryKey?id=${data.id}`,
    method: 'post',
    data
  })
}


/**
 * @description 详情
 * @param {type} params 
 */
 export function getCustomerMaintenanceLogById(params) {
  return request({
    url: `${kfApiUrl}/customerMaintenanceLog/getCustomerMaintenanceLogById`,
    method: 'get',
    params
  })
}

/**
 * @description 删除
 * @param {type} params 
 */
 export function queryScoreList(data) {
  return request({
    url: `${kfApiUrl}/customerMaintenanceManager/queryScoreList`,
    method: 'post',
    data
  })
}

